import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hwOperator/hwoperatordevice/` + url, ...arg)

/**
 * biz_hw_operator_deviceApi接口管理器
 *
 * @author lizhiwen
 * @date  2023/09/21 09:18
 **/
export default {
	// 获取biz_hw_operator_device分页
	hwOperatorDevicePage(data) {
		return request('page', data, 'get')
	},
	// 获取biz_hw_operator_device列表
	hwOperatorDeviceList(data) {
		return request('list', data, 'get')
	},
	// 提交biz_hw_operator_device表单 edit为true时为编辑，默认为新增
	hwOperatorDeviceSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除biz_hw_operator_device
	hwOperatorDeviceDelete(data) {
		return request('delete', data)
	},
	// 获取biz_hw_operator_device详情
	hwOperatorDeviceDetail(data) {
		return request('detail', data, 'get')
	},
	
	hwOperatorDeviceOptions(data) {
		return request('options', data, 'get')
	},
}
